<template>
	<view>
		<!-- 实现log打印 -->
		<button @click="onLog()">console.log</button>
		<button @click="onDebug()">console.debug</button>
		<button @click="onInfo()">console.info</button>
		<button @click="onWarn()">console.warn</button>
		<button @click="onError()">console.error</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'打印日志',
				name: "cjs",
				pwd:'222'
			}
		},
		methods: {
			onLog() {
				console.log("onLog()-->myname:" + this.myname)
			},
			onDebug() {
				console.log("onDebug")
			},
			onInfo() {
				console.log("onInfo" + this.myname)
			},
			onWarn() {
				console.log("onWarn" + this.myname)
			},
			onError() {
				console.log("onError" + this.myname)
			},
		}
	}
</script>

<style>

</style>